﻿<common:LayoutAwarePage
    x:Name="pageRoot"
    x:Class="Bank.GroupDetailPage"
    DataContext="{Binding DefaultViewModel, RelativeSource={RelativeSource Self}}"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Bank"
    xmlns:data="using:Bank.Data"
    xmlns:common="using:Bank.Common"
    xmlns:tiles="using:Bank.VariableTemplate"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

	 <Page.TopAppBar>
        <AppBar x:Name="TopApp" Padding="10,0,10,0" MinHeight="100" Background="#FF98D134" BorderBrush="#FF98D134">
            <Grid Margin="0">
                <StackPanel Margin="40,10,0,10" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                    <Button x:Name="btnAccounts" Tag="Accounts" HorizontalAlignment="Right" BorderBrush="{x:Null}" BorderThickness="0" FontWeight="Normal" VerticalAlignment="Center" Padding="0" Style="{StaticResource TopAppbarBtnStyle}" Margin="0,0,10,0" Background="#00292929" Click="btnAccounts_Click" >
                        <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0" Width="80">
                            <Image Source="Assets/AppBar/TopAppbarAccountsIcon.png" Margin="0"/>
                        </Grid>
                    </Button>
                    <Button x:Name="btnServices" Tag="Services" HorizontalAlignment="Right" BorderBrush="{x:Null}" BorderThickness="0" FontWeight="Normal" VerticalAlignment="Center" Padding="0" Style="{StaticResource TopAppbarBtnStyle}" Margin="0,0,10,0" Background="#00292929" Click="btnServices_Click" >
                    	<Grid HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0" Width="80">
                    		<Image Source="Assets/AppBar/TopAppbarServicesIcon.png" Margin="0"/>
                    	</Grid>
                    </Button>
                    <Button x:Name="btnCreditCard" Tag="CreditCard" HorizontalAlignment="Right" BorderBrush="{x:Null}" BorderThickness="0" FontWeight="Normal" VerticalAlignment="Center" Padding="0" Style="{StaticResource TopAppbarBtnStyle}" Margin="0,0,10,0" Background="#00292929" Click="btnCreditCard_Click"  >
                    	<Grid HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0" Width="80">
                    		<Image Source="Assets/AppBar/TopAppbarCreditCardIcon.png" Margin="0"/>
                    	</Grid>
                    </Button>

                </StackPanel>

            </Grid>
        </AppBar>
    </Page.TopAppBar>

<Page.BottomAppBar>
        <AppBar x:Name="appBar" Padding="10,0,10,0" Background="#FF98D134" BorderBrush="#FF98D134">
            <StackPanel Margin="40,0,0,0" Orientation="Horizontal" HorizontalAlignment="Left">
                <Button x:Name="btnAC" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" BorderBrush="{x:Null}" Padding="0" Style="{StaticResource BtmAppBarButtonStyle}">
                    <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Margin="10,6,10,0">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="22*"/>
                            <RowDefinition Height="5*"/>
                        </Grid.RowDefinitions>
                        <Image HorizontalAlignment="Center" VerticalAlignment="Top" Source="Assets/AppBar/BottomAppBar1.png" Width="65"/>
                        <TextBlock HorizontalAlignment="Center" Margin="13,0" TextWrapping="Wrap" Text="Lorum Ipsum" VerticalAlignment="Bottom" FontSize="14.667" FontWeight="Normal" Grid.Row="1" LineStackingStrategy="BlockLineHeight" LineHeight="20" Foreground="White"/>
                    </Grid>
                </Button>
                <Button x:Name="btnAc2" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" BorderBrush="{x:Null}" Padding="0" Style="{StaticResource BtmAppBarButtonStyle}">
                	<Grid HorizontalAlignment="Center" VerticalAlignment="Center" Margin="10,6,10,0">
                		<Grid.RowDefinitions>
                			<RowDefinition Height="22*"/>
                			<RowDefinition Height="5*"/>
                		</Grid.RowDefinitions>
                		<Image HorizontalAlignment="Center" VerticalAlignment="Top" Source="Assets/AppBar/BottomAppBar2.png" Width="65"/>
                		<TextBlock HorizontalAlignment="Center" Margin="13,0" TextWrapping="Wrap" Text="Lorum Ipsum" VerticalAlignment="Bottom" FontSize="14.667" FontWeight="Normal" Grid.Row="1" LineStackingStrategy="BlockLineHeight" LineHeight="20" Foreground="White"/>
                	</Grid>
                </Button>
               
            </StackPanel>
        </AppBar>
    </Page.BottomAppBar>

    <Page.Resources>

        <!--
            Collection of grouped items displayed by this page, bound to a subset
            of the complete item list because items in groups cannot be virtualized
        -->
        <CollectionViewSource
            x:Name="groupedItemsViewSource"
            Source="{Binding Groups}"
            IsSourceGrouped="true"
            ItemsPath="TopItems"
            d:Source="{Binding AllGroups, Source={d:DesignInstance Type=data:SampleDataSource, IsDesignTimeCreatable=True}}"/>
        <tiles:VariableTiles x:Key="MyTemplates"
                             MyAccountTileTemplate="{StaticResource MyAccountItemTemplate}"
                             FixedDepositTileTemplate="{StaticResource FixedDepositItemTemplate}">
                             

        </tiles:VariableTiles>
    </Page.Resources>
    <!--
        This grid acts as a root panel for the page that defines two rows:
        * Row 0 contains the back button and page title
        * Row 1 contains the rest of the page layout
    -->
    <Grid Style="{StaticResource LayoutRootStyle}">
        <Grid.RowDefinitions>
            <RowDefinition Height="140"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!-- Horizontal scrolling grid used in most view states -->
        <!--<GridView
            x:Name="itemGridView"
            AutomationProperties.AutomationId="ItemGridView"
            AutomationProperties.Name="Grouped Items"
            Grid.RowSpan="2"
            Padding="116,137,40,46"
            ItemsSource="{Binding Source={StaticResource groupedItemsViewSource}}"
            ItemTemplate="{StaticResource Standard250x250ItemTemplate}"
            SelectionMode="None"
            IsSwipeEnabled="false">

            <GridView.ItemsPanel>
                <ItemsPanelTemplate>                        
                    <VirtualizingStackPanel Orientation="Horizontal"/>
                </ItemsPanelTemplate>
            </GridView.ItemsPanel>
            <GridView.GroupStyle>
                <GroupStyle>
                    <GroupStyle.HeaderTemplate>
                        <DataTemplate>
                            <Grid Margin="1,0,0,6">
                                <Button
                                    AutomationProperties.Name="Group Title"
                                    Style="{StaticResource TextPrimaryButtonStyle}">
                                    <StackPanel Orientation="Horizontal">
                                        <TextBlock Text="{Binding Title}" Margin="3,-7,10,10" Style="{StaticResource GroupHeaderTextStyle}" />
                                        <TextBlock Text="{StaticResource ChevronGlyph}" FontFamily="Segoe UI Symbol" Margin="0,-7,0,10" Style="{StaticResource GroupHeaderTextStyle}"/>
                                    </StackPanel>
                                </Button>
                            </Grid>
                        </DataTemplate>
                    </GroupStyle.HeaderTemplate>
                    <GroupStyle.Panel>
                        <ItemsPanelTemplate>
                            <VariableSizedWrapGrid Orientation="Vertical" Margin="0,0,80,0"/>
                        </ItemsPanelTemplate>
                    </GroupStyle.Panel>
                </GroupStyle>
            </GridView.GroupStyle>
        </GridView>-->

        <!-- Vertical scrolling list only used when snapped -->

        <!-- Back button and page title -->
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Button x:Name="backButton" Click="GoBack" IsEnabled="{Binding Frame.CanGoBack, ElementName=pageRoot}" Style="{StaticResource BackButtonStyle}"/>
            <TextBlock x:Name="pageTitle" Grid.Column="1" IsHitTestVisible="false" Style="{StaticResource PageHeaderTextStyle}" Foreground="#FF68823B" Text="Accounts"/>
            <Image x:Name="image" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Column="1" Margin="0,0,40,0" Source="Assets/AppLogo.png" Width="200"/>
        </Grid>
        <ScrollViewer x:Name="scrollViewer" Style="{StaticResource HorizontalScrollViewerStyle}" Margin="0,116,0,0" Grid.RowSpan="2">
        	<Grid>
        		<Grid.ColumnDefinitions>
        			<ColumnDefinition Width="120"/>
        			<ColumnDefinition Width="340"/>
        			<ColumnDefinition Width="*"/>
					
        		</Grid.ColumnDefinitions>
        		<tiles:VariableTileControl
        			x:Name="itemGridView"
        			AutomationProperties.AutomationId="itemGridView"
        			AutomationProperties.Name="Grouped Items"
        			Padding="60,0,40,70"
        			ItemsSource="{Binding Source={StaticResource groupedItemsViewSource}}"
        			ItemTemplateSelector="{StaticResource MyTemplates}"
        			SelectionMode="None"
        			IsSwipeEnabled="false"
        			IsItemClickEnabled="True"
        			ItemClick="ItemView_ItemClick" Margin="0" Grid.Column="2" ScrollViewer.HorizontalScrollBarVisibility="Disabled">

        			<tiles:VariableTileControl.ItemsPanel>
        				<ItemsPanelTemplate>
        					<VirtualizingStackPanel Orientation="Horizontal" Margin="0,0,60,0"/>
        				</ItemsPanelTemplate>
        			</tiles:VariableTileControl.ItemsPanel>
        			<tiles:VariableTileControl.GroupStyle>
        				<GroupStyle>
        					<GroupStyle.HeaderTemplate>
        						<DataTemplate>
        							<Grid Margin="1,0,0,6">
        								<Button Foreground="#FF68823B"
        									AutomationProperties.Name="Group Title"
        									Click="Header_Click"
        									Style="{StaticResource TextPrimaryButtonStyle}" >
        									<TextBlock Text="{Binding Title}" Margin="3,-7,10,10" Style="{StaticResource GroupHeaderTextStyle}" FontWeight="SemiBold" />
        								</Button>
        							</Grid>
        						</DataTemplate>
        					</GroupStyle.HeaderTemplate>
        					<GroupStyle.Panel>
        						<ItemsPanelTemplate>
        							<VariableSizedWrapGrid ItemHeight="5" ItemWidth="5" Orientation="Vertical" Margin="0,0,80,0"/>
        						</ItemsPanelTemplate>
        					</GroupStyle.Panel>
        				</GroupStyle>
        			</tiles:VariableTileControl.GroupStyle>
        		</tiles:VariableTileControl>
        		<Grid Grid.Column="1">
        			<Grid.RowDefinitions>
        				<RowDefinition Height="11*"/>
        				<RowDefinition Height="146*"/>
        			</Grid.RowDefinitions>
        			<TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="Funds Transfer" VerticalAlignment="Top" FontFamily="Segoe UI" FontSize="26.667" FontWeight="SemiBold" Foreground="#FF68823B" LineStackingStrategy="BlockLineHeight" LineHeight="29.333"/>
        			<StackPanel Margin="0" Orientation="Vertical" Grid.Row="1">
        				<TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" Foreground="#FF68823B" FontFamily="Segoe UI" FontSize="16" MaxHeight="250">
        					<Run FontWeight="Bold" Text="Note: "/>
        					<Run Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eget velit tortor, eu commodo augue. In dignissim congue nunc, a tempor leo posuere at. Vivamus vulputate ante ac dui tempor egestas. Morbi tempor arcu vel nulla ultricies eu eleifend mauris posuere. Ut lobortis pharetra magna et consectetur."/>
        					<LineBreak/>
        					<Run/>
        					<LineBreak/>
        					<Run Text="Duis condimentum, quam nec vestibulum feugiat, nibh velit condimentum arcu, id mattis nibh lacus ac tellus. Mauris pulvinar, "/>
        				</TextBlock>
        				<TextBox x:Name="tbxFromAccount" Text="From Account" BorderBrush="#FF98D134" Background="#FFEEEEEE" Foreground="#FF68823B" FontSize="20" Padding="10,5,10,0" MinHeight="45" Margin="0,20,0,0" Style="{StaticResource FundsTransferTextBoxStyle}"/>
        				<TextBox x:Name="tbxFromAccount_Copy" Text="To Account" BorderBrush="#FF98D134" Background="#FFEEEEEE" Foreground="#FF68823B" FontSize="20" Padding="10,5,10,0" MinHeight="45" Margin="0,20,0,0" Style="{StaticResource FundsTransferTextBoxStyle}"/>
        				<TextBox x:Name="tbxFromAccount_Copy1" Text="Amount" BorderBrush="#FF98D134" Background="#FFEEEEEE" Foreground="#FF68823B" FontSize="20" Padding="10,5,10,0" MinHeight="45" Margin="0,20,0,0" Style="{StaticResource FundsTransferTextBoxStyle}"/>
        				<Button Content="Submit" HorizontalAlignment="Left" VerticalAlignment="Stretch" Margin="0,20,0,0" FontSize="24" Style="{StaticResource PayBillBtnStyle}" Padding="12,8" MinHeight="45"/>
        			</StackPanel>
        		</Grid>
        	</Grid>
        </ScrollViewer>
        <ScrollViewer x:Name="svSnapview" Grid.Row="1" Style="{StaticResource VerticalScrollViewerStyle}" Visibility="Collapsed">
        	<StackPanel Orientation="Vertical">
        		<Grid Grid.Column="1" Margin="20,0,10,62">
        			<Grid.RowDefinitions>
        				<RowDefinition Height="11*"/>
        				<RowDefinition Height="146*"/>
        			</Grid.RowDefinitions>
        			<TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="Funds Transfer" VerticalAlignment="Top" FontFamily="Segoe UI" FontSize="26.667" FontWeight="SemiBold" Foreground="#FF68823B" LineStackingStrategy="BlockLineHeight" LineHeight="29.333"/>
        			<StackPanel Margin="0" Orientation="Vertical" Grid.Row="1">
        				<TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" Foreground="#FF68823B" FontFamily="Segoe UI" FontSize="16">
        					<Run FontWeight="Bold" Text="Note: "/>
        					<Run Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eget velit tortor, eu commodo augue. In dignissim congue nunc, a tempor leo posuere at. Vivamus vulputate ante ac dui tempor egestas. Morbi tempor arcu vel nulla ultricies eu eleifend mauris posuere. Ut lobortis pharetra magna et consectetur."/>
        					<LineBreak/>
        					<Run/>
        					<LineBreak/>
        					<Run Text="Duis condimentum, quam nec vestibulum feugiat, nibh velit condimentum arcu, id mattis nibh lacus ac tellus. Mauris pulvinar, "/>
        				</TextBlock>
        				<TextBox x:Name="tbxFromAccount1" Text="From Account" BorderBrush="#FF98D134" Background="#FFEEEEEE" Foreground="#FF68823B" FontSize="20" Padding="10,5,10,0" MinHeight="45" Margin="0,20,0,0" Style="{StaticResource FundsTransferTextBoxStyle}"/>
        				<TextBox x:Name="tbxFromAccount_Copy2" Text="To Account" BorderBrush="#FF98D134" Background="#FFEEEEEE" Foreground="#FF68823B" FontSize="20" Padding="10,5,10,0" MinHeight="45" Margin="0,20,0,0" Style="{StaticResource FundsTransferTextBoxStyle}"/>
        				<TextBox x:Name="tbxFromAccount_Copy3" Text="Amount" BorderBrush="#FF98D134" Background="#FFEEEEEE" Foreground="#FF68823B" FontSize="20" Padding="10,5,10,0" MinHeight="45" Margin="0,20,0,0" Style="{StaticResource FundsTransferTextBoxStyle}"/>
        				<Button Content="Submit" HorizontalAlignment="Left" VerticalAlignment="Stretch" Margin="0,20,0,0" FontSize="24" Style="{StaticResource PayBillBtnStyle}" Padding="12,8" MinHeight="45"/>
        			</StackPanel>
        		</Grid>
        		<tiles:VariableTileControl
        			x:Name="SnapedGridView"
        			AutomationProperties.AutomationId="itemGridView"
        			AutomationProperties.Name="Grouped Items"
        			Padding="15,0,0,0"
        			ItemsSource="{Binding Source={StaticResource groupedItemsViewSource}}"
        			ItemTemplateSelector="{StaticResource MyTemplates}"
        			SelectionMode="None"
        			IsSwipeEnabled="false"
        			IsItemClickEnabled="True"
        			ItemClick="ItemView_ItemClick" ScrollViewer.VerticalScrollBarVisibility="Disabled" ScrollViewer.HorizontalScrollBarVisibility="Disabled">

        			<tiles:VariableTileControl.ItemsPanel>
        				<ItemsPanelTemplate>
        					<VirtualizingStackPanel Orientation="Vertical"/>
        				</ItemsPanelTemplate>
        			</tiles:VariableTileControl.ItemsPanel>
        			<tiles:VariableTileControl.GroupStyle>
        				<GroupStyle>
        					<GroupStyle.HeaderTemplate>
        						<DataTemplate>
        							<Grid Margin="1,0,0,6">
        								<Button Foreground="#FF68823B"
        									AutomationProperties.Name="Group Title"
        									Click="Header_Click"
        									Style="{StaticResource TextPrimaryButtonStyle}" >
        									<TextBlock Text="{Binding Title}" Margin="3,-7,10,10" Style="{StaticResource GroupHeaderTextStyle}" FontWeight="SemiBold" />
        								</Button>
        							</Grid>
        						</DataTemplate>
        					</GroupStyle.HeaderTemplate>
        					<GroupStyle.Panel>
        						<ItemsPanelTemplate>
        							<VariableSizedWrapGrid ItemHeight="5" ItemWidth="5" Orientation="Horizontal" Margin="0,0,0,60"/>
        						</ItemsPanelTemplate>
        					</GroupStyle.Panel>
        				</GroupStyle>
        			</tiles:VariableTileControl.GroupStyle>
        		</tiles:VariableTileControl>
        	</StackPanel>
        </ScrollViewer>

        <VisualStateManager.VisualStateGroups>

            <!-- Visual states reflect the application's view state -->
            <VisualStateGroup x:Name="ApplicationViewStates">
                <VisualState x:Name="FullScreenLandscape"/>
                <VisualState x:Name="Filled"/>

                <!-- The entire page respects the narrower 100-pixel margin convention for portrait -->
                <VisualState x:Name="FullScreenPortrait">
                    <Storyboard>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PortraitBackButtonStyle}"/>
                        </ObjectAnimationUsingKeyFrames>

                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="itemGridView" Storyboard.TargetProperty="Padding">
                            <DiscreteObjectKeyFrame KeyTime="0">
                            	<DiscreteObjectKeyFrame.Value>
                            		<Thickness>96,0,10,56</Thickness>
                            	</DiscreteObjectKeyFrame.Value>
                            </DiscreteObjectKeyFrame>
                        </ObjectAnimationUsingKeyFrames>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Margin)" Storyboard.TargetName="scrollViewer">
                        	<DiscreteObjectKeyFrame KeyTime="0">
                        		<DiscreteObjectKeyFrame.Value>
                        			<Thickness>-23,116,0,0</Thickness>
                        		</DiscreteObjectKeyFrame.Value>
                        	</DiscreteObjectKeyFrame>
                        </ObjectAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>

                <!--
                    The back button and title have different styles when snapped, and the list representation is substituted
                    for the grid displayed in all other view states
                -->
                <VisualState x:Name="Snapped">
                    <Storyboard>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedBackButtonStyle}"/>
                        </ObjectAnimationUsingKeyFrames>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="pageTitle" Storyboard.TargetProperty="Style">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedPageHeaderTextStyle}"/>
                        </ObjectAnimationUsingKeyFrames>

                        
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="itemGridView" Storyboard.TargetProperty="Visibility">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/>
                        </ObjectAnimationUsingKeyFrames>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="scrollViewer">
                        	<DiscreteObjectKeyFrame KeyTime="0">
                        		<DiscreteObjectKeyFrame.Value>
                        			<Visibility>Collapsed</Visibility>
                        		</DiscreteObjectKeyFrame.Value>
                        	</DiscreteObjectKeyFrame>
                        </ObjectAnimationUsingKeyFrames>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="svSnapview">
                        	<DiscreteObjectKeyFrame KeyTime="0">
                        		<DiscreteObjectKeyFrame.Value>
                        			<Visibility>Visible</Visibility>
                        		</DiscreteObjectKeyFrame.Value>
                        	</DiscreteObjectKeyFrame>
                        </ObjectAnimationUsingKeyFrames>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="image">
                        	<DiscreteObjectKeyFrame KeyTime="0">
                        		<DiscreteObjectKeyFrame.Value>
                        			<Visibility>Collapsed</Visibility>
                        		</DiscreteObjectKeyFrame.Value>
                        	</DiscreteObjectKeyFrame>
                        </ObjectAnimationUsingKeyFrames>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="appBar">
                        	<DiscreteObjectKeyFrame KeyTime="0">
                        		<DiscreteObjectKeyFrame.Value>
                        			<Visibility>Collapsed</Visibility>
                        		</DiscreteObjectKeyFrame.Value>
                        	</DiscreteObjectKeyFrame>
                        </ObjectAnimationUsingKeyFrames>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="TopApp">
                        	<DiscreteObjectKeyFrame KeyTime="0">
                        		<DiscreteObjectKeyFrame.Value>
                        			<Visibility>Collapsed</Visibility>
                        		</DiscreteObjectKeyFrame.Value>
                        	</DiscreteObjectKeyFrame>
                        </ObjectAnimationUsingKeyFrames>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Margin)" Storyboard.TargetName="scrollViewer">
                        	<DiscreteObjectKeyFrame KeyTime="0">
                        		<DiscreteObjectKeyFrame.Value>
                        			<Thickness>-23,116,0,0</Thickness>
                        		</DiscreteObjectKeyFrame.Value>
                        	</DiscreteObjectKeyFrame>
                        </ObjectAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>
    </Grid>
</common:LayoutAwarePage>
